<template>
  <mobile-navigation-vue v-if="isMobileTerminal" />
  <pc-navigation-vue v-else></pc-navigation-vue>
</template>

<script setup>
import { isMobileTerminal } from '@/utils/flexible'
import mobileNavigationVue from './mobile/index.vue'
import pcNavigationVue from './pc/index.vue'
import { useStore } from 'vuex'
const store = useStore()
// 触发category数据获取动作
store.dispatch('category/useCategoryData')
// import { getCategory } from '@/api/category'
// import { ALL_CATEGORY_ITEM } from '@/constants/index.js'
// import { ref } from 'vue'
// const categoryData = ref([])
// const getCategoryData = async () => {
//   const { categorys } = await getCategory()
//   // console.log(categorys, '8888888888')
//   categoryData.value = categorys
//   categoryData.value.unshift(ALL_CATEGORY_ITEM)
// }
// getCategoryData()
</script>
